# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libiphb
pkgver=1.2.5
pkgrel=0
pkgdesc="Nemo's libiphb"
url="https://git.sailfishos.org/mer-core/libiphb"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="glib-dev dbus-dev dbus-glib-dev mce-dev libdsme-dev"
makedepends="$depends_dev libtool automake autoconf"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libiphb/-/archive/$pkgver/libiphb-$pkgver.tar.gz"
options="!check" # No suitable tests

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="e870532bb698c774eda4b644b611a7fbc650d9680682ac680845c3749dab8d5774d8596dd3d0ce76190a3786d3f54d3ecab8997fcc23cd843da882690783259b  libiphb-1.2.5.tar.gz"
